<h1>New objective</h1>

<%= error_messages_for :user %>
<% if flash[:error] %>
  <div style="color: red;" class="error"><%= flash[:error] %></div>
<% end %>
<div id="page">
  <% if flash[:alert] %>
      <p class="flash-error"><%= flash[:alert] %></p>
  <% end %>
  <% if flash[:notice] %>
      <p class="flash-notice"><%= flash[:notice] %></p>
  <% end %>
  <%= yield %>
</div>
<p>
<%= form_for  @objective, :url => { :action => "create" } do |f| %>

      <%=  render "cartasur/objectives/objectivesform", :f => f  %>
    <p><%= submit_tag 'Save new objective' %></p>
<% end -%>

</p>
